<div class="bjui-pageHeader">
    <a href="{:U('Article/positionAdd')}" class="btn btn-green" data-toggle="dialog" data-width="520" data-height="320" data-id="dialog-mask" data-mask="true">{:L('add_position')}</a>
</div>
<div class="bjui-pageContent tableContent">
    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
        <thead>
            <tr>
                <th width="100">id</th>
                <th width="100"><?php echo L('posid_name');?></th>
                <th width="100">
                    <?php echo L('posid_catid');?>
                </th>
                <th>
                    <?php echo L('posid_modelid');?>
                </th>
                <th width="230">
                    <?php echo L('operations_manage');?>
                </th>
            </tr>
        </thead>
        <tbody>
            <foreach name="page_list" item="item">
                <tr data-id="{$item.posid}">
                    <td>{$item.posid}</td>
                    <td>{$item.name}</td>
                    <td><?php echo $item['catid'] ? $category[$item['catid']]['catname'] : L('posid_all')?></td>
                    <td><?php echo $item['modelid'] ? $model[$item['modelid']]['name'] : L('posid_all')?></td>
                    <td align="center">
                        <a class="btn btn-green" href="{:U('Article/positionItem?posid='.$item['posid'])}" data-toggle="navtab" data-id="Article_positionItem"><?php echo L('posid_item_manage')?></a> 
                        <a class="btn btn-green" href="{:U('Article/positionEdit?posid='.$item['posid'])}" data-toggle="dialog" data-width="700" data-height="700" data-id="article_edit" data-title="编辑-{$item.title}"><span>{:L('edit')}</span></a>
                        <a class="btn btn-red" href="{:U('Article/positionDelete', ['posid' => $item['posid']])}" data-toggle="doajax" data-confirm-msg="{:L('confirm_delete_position', array('message'=>addslashes($item['tablename'])))}">{:L('delete')}</a>
                    </td>
                </tr>
            </foreach>
        </tbody>
    </table>
</div>